// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// 公共样式
import '@/assets/css/base/base.css'

import Vue from 'vue'
import App from '@/App'
import router from '@/router'
import axios from '@/axios/axiosConfig'
import stores from '@/vuex/store'
import VueCookies from 'vue-cookies'
import ElementUI from 'element-ui'
import {MessageBox} from 'element-ui';

import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/base.css'

Vue.use(ElementUI)
Vue.use(VueCookies)

Vue.config.productionTip = false
Vue.prototype.confirm = MessageBox.confirm;
axios.defaults.baseURL = '/'
// eslint-disable-next-line
axios.defaults.headers.common['vkey'] = $cookies.get('vkey')
/* eslint-disable no-new */

Array.prototype.remove = function (val) {
  let index = this.indexOf(val);
  if (index > -1) {
    this.splice(index, 1);
  }
}

new Vue({
  router,
  'store': stores,
  'render': (h) => h(App)
}).$mount('#app')
